<?php
namespace app\backend\validate;

use think\Validate;

class People extends Validate
{

    protected $rule =   [
        'name_cn'              => 'max:100',
        'name_en'              => 'max:255',
    ];

    protected $message  =   [
        'name_cn'      => '标题格式不正确',
        'name_en'       => '标题格式不正确',

    ];

    protected $scene = [
        'add' => ['name_cn','name_en'],
        'edit' => ['name_cn','name_en']
    ];

}


